<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%> <%@ taglib prefix="c"
uri="http://java.sun.com/jsp/jstl/core"%>
<div class="head">
  <div class="wrapper clearfix">
    <div class="clearfix" id="top">
      <h1 class="fl logo"> 
        <a href="index"><img src="img/logo.png"/></a>
      </h1>
      <div class="fr clearfix" id="top1">
        <p class="fl">
          <c:if test="${islogin != 1}">
            <a href="login.jsp" id="login">登录</a>
            <a href="register.jsp" id="reg">注册</a>
          </c:if>
          <c:if test="${islogin ==  1}">
            <span class="fz">你好!<a href="touserinfo" id="login">${user.user_id}</a></span>
          </c:if>
          <c:if test="${isadminlogin ==  1}">
            <a href="backstage/admin_index.jsp" id="login">进入后台</a>
          </c:if>
        </p>
        <form action="#" method="get" class="fl">
          <input type="text" placeholder="搜索你想看的图书" class="aaaaa" />
          <input type="button"/>
        </form>
        <div class="btn fl clearfix">
          <a href="touserinfo"><img src="img/grzx.png" /></a>
          <p>
            <a href="#"><img src="img/smewm.png" /></a>
          </p>
        </div>
      </div>
    </div>
    <ul class="clearfix" id="bott">
      <li><a href="index">首页</a></li>
      <c:forEach var="i" items="${flist}">
        <li>
          <a href="tobooklist?fid=${i.category_id}">${i.category_name}</a>
          <div class="sList2">
            <div class="clearfix">
              <c:forEach var="j" items="${clist}">
                <c:if test="${i.category_id == j.category_parent}">
                  <a href="tobooklist?cid=${j.category_id}">${j.category_name}</a>
                </c:if>
              </c:forEach>
            </div>
          </div>
        </li>
      </c:forEach>
    </ul>
  </div>
</div>
